
<br/>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title">
            <?php echo $this->translate("searchCategoryTitle"); ?></span>
            <div class='center_form_btn_div2' onclick='javascript:Inventory.openAddCategoryDialog("<?php echo HttpUtil::baseUrl();?>");'>
                <div class='center_form_btn_pic2'>
                    <img src='<?php echo HttpUtil::baseUrl();?>/images/add.gif'/>
                </div><div class='center_form_btn_text2'><?php echo $this->translate("addBtn"); ?></div>
            </div>
      </div>
      <div class="right_form_content">
            <div style="margin:15px;">
                <div style="margin:5px 0; color:#acc3d5;" id="treeboxbox_tree">

                </div>
            </div>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>
<div id="categoryDialog"></div>
<div id="categoryConfirmDialog" style="display:none;text-align:center;">
      <input type="hidden" value="" id="categoryEventId" />
      <div onclick='javascript:Inventory.insertChildCategory("<?php echo HttpUtil::baseUrl();?>");' style="margin-left:20px;margin-bottom:30px;cursor:pointer;">
        <div class='center_form_btn_pic'>
            <img src='<?php echo HttpUtil::baseUrl();?>/images/add.gif'/>
        </div><div class='center_form_btn_text'><?php echo $this->translate("insertNewCategory"); ?></div>
      </div>
      <div class="clear"></div>
      <div onclick='javascript:Inventory.editThisCategory("<?php echo HttpUtil::baseUrl();?>");' style="margin-left:20px;cursor:pointer;">
        <div class='center_form_btn_pic'>
            <img src='<?php echo HttpUtil::baseUrl();?>/images/edit.gif'/>
        </div><div class='center_form_btn_text'><?php echo $this->translate("editThisCategory"); ?></div>
      </div>
</div>
<script type="text/javascript" language="javascript">
    //<![CDATA[
         var treeIndex;
         var url = "<?php echo HttpUtil::baseUrl();?>";
         $(document).ready(function(){
            var categoryXml = '<?php echo $this->categoryXml ?>';
            var imagePath = "<?php echo HttpUtil::baseUrl();?>/images/dhtmltreeimgs/";
            treeIndex = Inventory.initCategoryTree("treeboxbox_tree",categoryXml,imagePath,0);
            //tree1.setOnCheckHandler(Inventory.selectCheckBox);
            treeIndex.setOnClickHandler(Inventory.clickCategory);
            treeIndex.openAllItems("-1");
         });
     //]]>
</script>
